<div id="sidebar">
            <%currentGroup = ''%>
            <%i=0%>
            <%@session[:rights].each do |right|%>
            <%if !currentGroup.eql? right.mgroup%>
            <%if !currentGroup.eql? ''%>
            						</ul>
				</div>
			</div>
			<%end%>
			<%currentGroup = right.mgroup%>
            <div <%='id="related"' if i==0%><%='class="pagetools"' if i!=0%>">
            <%i=i+1%>
				<div>
					<h3><%=right.mgroup%></h3>
					<p>
						<ul>
			<%end%>
							<li><a href="/<%=right.url%>"><%=right.name%></a></li>
			<%end%>
            						</ul>
				</div>
			</div>
</div>